package com.cskaoyan.controller.admin;

import com.cskaoyan.model.admin.vo.BaseDataListVo;
import com.cskaoyan.model.admin.vo.BaseRespVo;
import com.cskaoyan.service.admin.AdminRegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hanshuai
 * @version 1.0
 * @description @TODO
 * @date 2021/11/30 16:12
 */
@RestController
@RequestMapping("/admin/region")
public class AdminRegionController {

    @Autowired
    AdminRegionService adminRegionService;

    @RequestMapping("list")
    public BaseRespVo regionList(){
        BaseDataListVo baseDataListVo =adminRegionService.regionList();
        return BaseRespVo.ok(baseDataListVo);
    }
}
